//
//  HomeWireFrame.swift
//  MobileXGlobal
//
//  Created by ROBIN.J.Y.ZHONG on 2023/5/25.
//

import UIKit

class HomeWireFrame: HomeWireFrameProtocol {
    class func createHomeModule() -> UIViewController {
        let view: UIViewController & HomeViewProtocol = HomeView()
        let navVC = UINavigationController(rootViewController: view)
        let presenter: HomePresenterProtocol = HomePresenter()
        let interactor: HomeInteractorProtocol = HomeInteractor()
        let wireFrame: HomeWireFrameProtocol = HomeWireFrame()
        
        view.presenter = presenter
        presenter.view = view
        presenter.interactor = interactor
        presenter.wireFrame = wireFrame
        interactor.presenter = presenter
        
        return navVC
    }
    
}
